package com.xinjian.jianba.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class EsUtil {

	public final  static  int SIZE_ES_QUERY = 20;
	//约见
	public   static String oneKeyIndex;
	public   static String oneKeyType;
	public final  static String userId="userId";
	public final  static String  theme="theme";
	public final  static String  nickName="nickName";
	public final  static String sex="sex";
	public final  static String location="location";
	public final  static String createTime="createTime";
	public final  static String lastUpdateTime="lastUpdateTime";
	public final  static String isOnline="isOnline";
	public final  static String onLineTime="onLineTime";
	
	//商家搜索
	public  static String buziInfoIndex;
	public  static String buziInfoKeyType;
	public final  static String buziInfoBUZIID="buziId";
	public final  static String buziInfoNAME="name";
	public final  static String buziInfoPROVINCE="province";
	public final  static String buziInfoCITY="city";
	public final  static String buziInfoAREA="area";
	public final  static String buziInfoADDRESS="address";
	public final  static String buziInfoLOCATION="location";
	public final  static String buziInfoLINKMAN="linkman";
	public final  static String buziInfoPHONE="phone";
	public final  static String buziInfoTYPE="type";
	public final  static String buziInfoLOGO="logo";
	public final  static String buziInfoUP_TIME="up_time";
	
	@Value("${jianba.elasticsearch.oneKeyIndex}")
	public  void setOneKeyIndex(String oneKeyIndex) {
		EsUtil.oneKeyIndex = oneKeyIndex;
	}
	@Value("${jianba.elasticsearch.oneKeyType}")
	public  void setOneKeyType(String oneKeyType) {
		EsUtil.oneKeyType = oneKeyType;
	}
	@Value("${jianba.elasticsearch.buzinessIndex}")
	public  void setBuziInfoIndex(String buziInfoIndex) {
		EsUtil.buziInfoIndex = buziInfoIndex;
	}
	@Value("${jianba.elasticsearch.buzinessType}")
	public  void setBuziInfoKeyType(String buziInfoKeyType) {
		EsUtil.buziInfoKeyType = buziInfoKeyType;
	}
	
	
}
 